const mongoose = require('mongoose');
const mongoose_paginate = require('mongoose-paginate');

let UserSchema = new mongoose.Schema({
    'nickname': String,
    'password': String,
    'phone': String,
    'email': String,
});

UserSchema.plugin(mongoose_paginate);

module.exports = mongoose.model('User', UserSchema, 'user');
